import App from './App'

// #ifndef VUE3
import Vue from 'vue'

import api from '@/common/vmeitime-http/'
import http from 'common/vmeitime-http/interface.js'
 // 全局挂载后使用
Vue.prototype.$api = api
Vue.prototype.$http = http


//全局注入w-loading组件
import wLoading from "@/components/loading/w-loading.vue";
Vue.component('w-loading',wLoading)


//全局分享组件
import share from "@/static/js/share.js";
Vue.mixin(share)


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif